surfaceCreated

open fun surfaceCreated(holder: SurfaceHolder)

Called when the surface is first created. If playback has been started and a surface was previously unavailable, this triggers initPlayer to prepare and start video playback.

Parameters

holder

The SurfaceHolder whose surface is ready.